<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>浮动</title>
	<style>
		div.box1 {
			background-color: red;
			height: 2000px;
			width: 200px;
			float: left;
		}
		.box2 {
            background-color: pink;
            height: 200px;
            width: 2000px;
		}
	</style>
</head>
<body>
	<div class="box1"></div>
	<div class="box2"></div>
</body>
</html>